package com.shiroha.user.pojo;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.shiroha.common.enums.GroupRole;
import com.shiroha.common.handler.UUIDTypeHandler;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.UUID;

@Data
@Table(value = "group_member", schema = "public")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GroupMember {
    private Long id;
    private Long groupId;
    @Column(typeHandler = UUIDTypeHandler.class)
    private UUID userId;
    private String nickname;
    private GroupRole role;
    private boolean isDeleted;
    private LocalDateTime createdAt;
}
